package com.example.makerspace.domain;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.makerspace.mapper.MybatisListHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "t_technic_docking", autoResultMap = true)
@Document(indexName = "t_technic")
public class TechnicDockingDO extends BaseDO{
    @Field(name = "technic_name", type = FieldType.Text, analyzer="ik_max_word")
    private String technicName;

    @TableField(typeHandler = MybatisListHandler.class)
    @Field(name = "keyword", type = FieldType.Text, analyzer="ik_max_word")
    private List<String> keyword;

    private String picture;
    private String technicDesc;
    private String meeting;
}
